<?php
$this->activemenu = 19;
$this->pageTitle=Yii::app()->name . ' - Tin tức';
$this->breadcrumbs=array(
		'Tin tức',
);
?>
<div class="head-tool">
	<div class="main-title">Tin tức</div>
</div>
<div class="content-box">
	<?php if($total>0):?>
	<?php foreach ($data as $key => $item):?>
	<div class="news-items">
		<div class="thumb">
			<img src="<?php echo CommonHelper::getImageThumbNews($item['images']);?>" />
		</div>
		<div class="intro">
			<div class="t-news"><a href="<?php echo Yii::app()->controller->createUrlArticle($item['id']);?>"><?php echo $item['title'];?></a></div>
			<div class="date"><?php echo CommonHelper::formatDateTime();?></div>
			<?php echo $item['introtext'];?>
		</div>
		<div class="readmore"><a href="<?php echo Yii::app()->controller->createUrlArticle($item['id']);?>">Chi tiết</a></div>
	</div>
	<?php endforeach;?>
	<div class="paging">
		 <?php 
		$this->widget('frontend.widgets.Pagination',
					array(
						'pages' => $page,
						'maxButtonCount'=>$itemOnPaging,
						));
		?>
		</div>
	<?php endif;?>
</div>